package demo5.demo1;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class User1 {
    public User1() {
        System.out.println("无参");
    }
    @PostConstruct
    public void aa(){
        System.out.println("初始化");
    }
    public void bb(){
        System.out.println("手动业务调用");
    }
    @PreDestroy
    public void cc(){
        System.out.println("销毁");
    }

}
